<!DOCTYPE html>
<html>
	<head>
		<title>I Wonder</title>
		
		<!-- This should get replaced with a locally hosted solution, but I didn't want to fight with the pipeline right now -->
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/smoothness/jquery-ui.css" type="text/css" media="all" />
		
		<%= stylesheet_link_tag("i_wonder/application") %>
		<%= javascript_include_tag("i_wonder/application") %>
	</head>
	<body>
		<div id="i_wonder_wrapper">
			<nav>
				<%= link_to "< #{IWonder.configuration.app_name }", IWonder.configuration.back_to_app_link %>
				<%= link_to "Dashboard", root_path %>
				<%= link_to "ABTests", ab_tests_path %>
				<%= link_to "Reports", reports_path %>
				<%= link_to "Metrics", metrics_path %>
				<%= link_to "Events", events_path %>
				<span>I Wonder Analytics Engine</span>
			</nav>
		
			<div id="container">
				<% flash.each do |name, msg| %>
		      <%= content_tag :div, msg, :class => "flash flash_#{name} clearfix" %>
		    <% end %>

				<%= yield %>
			</div>
		</div>
	</body>
</html>
